<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			// #ifdef APP-PLUS
			plus.android.requestPermissions([
			  'android.permission.CAMERA',
			  'android.permission.READ_EXTERNAL_STORAGE',
			  'android.permission.WRITE_EXTERNAL_STORAGE',
			  'android.permission.ACCESS_FINE_LOCATION'
			], function(e) {
			  if (e.deniedAlways.length > 0) {
			    // 用户永久拒绝了某些权限
			    uni.showModal({
			      title: '权限不足',
			      content: '您拒绝了必要的权限，部分功能将无法使用',
			      showCancel: false
			    });
			  }
			}, function(e) {
			  console.log('权限申请失败：' + JSON.stringify(e));
			});
			// #endif
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
